package com.anan.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.FIELD})
public @interface CheckObject {


    boolean required() default false;  // 是否必须

    String[] checkProperties() default {"all"};  // 校验属性 默认校验全部属性
}
